/*
 * Copyright (C) 2011  John Lawrence thegordo.john at gmail.com
 * Licensed under GPLv3 or later. see http://www.gnu.org/copyleft/gpl.html
 */

package org.jklawrencefam.server.smtp.command;

import org.jklawrencefam.server.smtp.SmtpCode;

/**
 * User: John Lawrence
 * Date: 5/24/11
 * Time: 6:46 AM
 */
public class Unsupported extends SmtpCommand {
    private String command;

    protected Unsupported(String command) {
        super("");
        this.command = command;
    }

    @Override
    public String getReplyMessage() {
        return composeMessage(SmtpCode.UNIMPLEMENTED, command, "unimplemented");
    }

    @Override
    protected boolean isValid() {
        return true;
    }
}
